package com.css.dzj.zfjg.modules.cohostrelate.mapper;

import com.css.dzj.zfjg.modules.cohostrelate.entity.JgLhjgRwxbglbEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


/**
 * 协办关系表Mapper
 */
@Repository
public interface RwxbglbMapper extends JpaRepository<JgLhjgRwxbglbEntity, String>, JpaSpecificationExecutor<JgLhjgRwxbglbEntity>,
        QuerydslPredicateExecutor<JgLhjgRwxbglbEntity> {
    @Query(value = "select count(RWXB_ID) from JG_LHJG_RWXBGLB where Task_No = :taskNo",
            nativeQuery = true)
    String getXbCountByTaskNo(@Param("taskNo") String taskNo);
}
